#include"SList.h"

//void tset1()
//{
//	/*SLTNode* n1 = BuySLTNode(1);
//	SLTNode* n2 = BuySLTNode(2);
//	SLTNode* n3 = BuySLTNode(3);
//	SLTNode* n4 = BuySLTNode(4);
//
//	n1->next = n2;
//	n2->next = n3;
//	n3->next = n4;
//	n4->next = NULL;*/
//	
//	//
//	SLTNode* plist = CreateSList(3);
//
//	SLTPushBack(&plist, 100);
//	SLTPrint(plist);
//
//}

void TestSList2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 100);
	SLTPushBack(&plist, 200);
	SLTPushBack(&plist, 300);
	//SLTPrint(plist);
	printf("\n");
	
	/*SLTPopBack(&plist);
	SLTPopBack(&plist);
	SLTPopBack(&plist);*/

	/*SLTPopFront(&plist);
	SLTPopFront(&plist);*/
	//SLTNode* ret = SLTFind(plist,200);
	//printf("%p", ret);
	SLTNode* pos = SLTFind(plist, 200);
	printf("%p\n", pos);
	SLTInsertAfter(pos, 2);
	SLTPrint(plist);
}
int main()
{
	//tset1();
	TestSList2();
	return 0;
} 